package com.dek.seckill.common.util;

import java.util.regex.Matcher;
import java.util.regex.Pattern;

public class ValidateUtil {

    public static final String MOBILE_REGEX = "^1\\d{10}";

    public static boolean isMobile(String mobile) {
        Pattern p = Pattern.compile(MOBILE_REGEX);
        Matcher m = p.matcher(mobile);
        boolean isMatch = m.matches();
        return isMatch;
    }

}
